//
//  BaseButton.m
//  CreditAddressBook
//
//  Created by Lee on 15/7/23.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import "BaseButton.h"

@implementation BaseButton

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.layer.cornerRadius = 4;
        self.layer.masksToBounds = YES;
        self.layer.borderWidth = 1;
        self.layer.borderColor = CYNaviThemeColor.CGColor;
    }
    return self;
}

- (void)awakeFromNib {
    self.layer.cornerRadius = 4;
    self.layer.masksToBounds = YES;
    if (self.backgroundColor == [UIColor clearColor]) {
        self.layer.borderWidth = 1;
        self.layer.borderColor = CYNaviThemeColor.CGColor;
    }
}

@end
